package crafex.engine.entities;

import crafex.engine.tools.IntVertex2D;

public class InventoryItem {
	
	/**
	 * the database id of the item
	 */
	private int id;
	/**
	 * the starting slot location in the inventory
	 */
	private IntVertex2D slot;
	/**
	 * the amount of slots the items takes in the horazontal and vertical directions
	 */
	private IntVertex2D slotLength;
	/**
	 * the command that is called when the item is init.
	 */
	private String initCommand;
	
	public InventoryItem(int id, IntVertex2D length){
		setId(id);
		setSlotLength(length);
	}

	public int getId() {
		return id;
	}

	private void setId(int id) {
		this.id = id;
	}

	public IntVertex2D getSlot() {
		return slot;
	}

	public String getInitCommand(){
		return initCommand;
	}
	
	public void setInitCommand(String command){
		this.initCommand = command;
	}
	
	public void setSlot(IntVertex2D slot) {
		this.slot = slot;
	}

	public IntVertex2D getSlotLength() {
		return slotLength;
	}

	private void setSlotLength(IntVertex2D slotLength) {
		this.slotLength = slotLength;
	}
	
	
	
}
